<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="edit.do" method="post">
		<input type="hidden" name="id" value="${salary.id }" />
		<table border="1" cellspacing="0" align="center">
			<tr>
				<td>员工</td>
				<td><select name="personId">
						<c:forEach items="${employeeList }" var="employee">
							<option value="${employee.id }"
								<c:if test="${salary.personId == employee.id }">selected="selected"</c:if>>${employee.name }</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td>发薪日期</td>
				<td><input type="date" name="date"
					value="${salary.date }" /></td>
			</tr>
			<tr>
				<td>工资</td>
				<td><input type="number" name="salary"
					value="${salary.salary }" /></td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit">修改工资条目</button></td>
			</tr>
		</table>
	</form>
</body>
</html>